﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="ZLCMS.Web.SystemManage.Basics.Param.Group.Edit" %>

<form id="pageForm" method="post" runat="Server" class="pageForm required-validate"
    onsubmit="return validateCallback(this, navTabAjaxDone);" action="/SystemManage/Basics/Param/Group/Edit.aspx">

<!-- 需保存的全局变量 -->
<asp:label runat="server" ID="_groupId" Visible="False" ></asp:label>

<div class="pageContent" layoutH="36"> 
    <div class="pageFormContent">
    <h2 class="contentTitle">参数修改（请谨慎修改，否则可能导致系统错误！）</h2>
    
        <dl class="nowrap">
            <dt>参数组：</dt>
		    <dd><asp:textbox id="tb_code" runat="server" size="50" class="readonly" /></dd>
        </dl>
		<dl class="nowrap">
            <dt>参数名称：</dt>
		    <dd><asp:textbox id="tb_value" runat="server" size="50" class="required"/></dd>
        </dl>
		<dl class="nowrap">
            <dt>特殊方法名称：</dt>
            <dd><asp:TextBox id="tb_param1" size="50" runat="server"></asp:TextBox></dd>
        </dl>
		<dl class="nowrap">
            <dt>特殊方法参数：</dt>
            <dd><asp:TextBox id="tb_param2" width="500px" runat="server"></asp:TextBox></dd>
        </dl>
		<dl class="nowrap">
            <dt>备注：</dt>
            <dd><asp:TextBox id="tb_memo" width="500px" runat="server" TextMode="MultiLine" Rows="5"></asp:TextBox></dd>
        </dl>
        
		<dl class="nowrap">
            <dt>参数组扩展：</dt>
            <dd>&nbsp;</dd>
        </dl>
	</div>

    <div class="panelBar">
	    <ul class="toolBar">
            <li><a class="add" href='/SystemManage/Basics/Param/Group/AddExp.aspx?groupid=<%= _gourpDB.ItemCode %>' target="dialog" rel="addparamgroupexp" title="参数组扩展增加"
            max="false" mask="true" maxable="false" minable="false" width="800" height="400"><span>添加</span></a></li>
	    </ul>
    </div>
	
    <table class="table" width="100%">
        <thead>
		    <tr>
			    <th width="20%">扩展代码</th>
			    <th width="20%">扩展名称</th>
			    <th width="20%">扩展类型</th>
			    <th width="20%">扩展关联组</th>
			    <th width="20%">管理</th>
		    </tr>
	    </thead>
	    <tbody>
            <asp:repeater runat="server" id="grid">
                <ItemTemplate>
		        <tr target="uid" rel='<%# Eval("Code")%>'>
			        <td><%# Eval("Code")%></td>
			        <td><%# Eval("Name")%></td>
			        <td><%# ZLCMS.Business.Util.ParamKit.GetValue("ParamGroupExpType", Eval("Type"), "&nbsp")%></td>
			        <td><%# ZLCMS.Business.Util.ParamKit.GetValue("TranferParam", Eval("Relation").ToString(), "&nbsp")%></td>
			        <td> 
			            <a href="/SystemManage/Basics/Param/Group/EditExp.aspx?groupid=<%= _gourpDB.ItemCode %>&code=<%# Eval("Code")%>" target="dialog" title="参数组扩展修改" 
			            rel="editparamgroupexp"max="false" mask="true" maxable="false" minable="false" width="800" height="400">修改</a>&nbsp;&nbsp;
			            <a href="/SystemManage/Basics/Param/Group/DeleteExp.aspx?groupid=<%= _gourpDB.ItemCode %>&code=<%# Eval("Code")%>" target="ajaxTodo" title="请确定要删除" warn="请选择一项">删除</a>
			        </td>
		        </tr>
                </ItemTemplate>
            </asp:repeater>
	    </tbody>
    </table>
        
</div>

<div class="formBar">
    <ul>
        <li>
        <div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div>
        </li>
		<li>
	    <div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
		</li>
	</ul>
</div>

</form>